#include <iostream>
#include <string>

using namespace std;

int main ()
{
	char* buf = "nihao!";
	cout << *buf << endl;
	//string a = *((string*)buf);
	string a = string(buf);

	int i = 2;
	int* b = &i;
	int c = int(buf);
	//int c = int b;

	cout << a << " " << c << endl;
	return 0;
}
